<template>
	<view class="fixed-bottom">
		<view class="price-num-box">
			<view class="t-p-box">
				<view class="p-n-t">数量<text class="p-n-n-txt">{{number}}</text></view>
				<view class="p-n-t">总价<text class="p-n-p-txt">{{totalPrice}}</text></view>
			</view>
		</view>
		<view class="b-copy b-delete-txt" @click="optionAct(action[0])">清除</view>
		<view class="b-copyreader" @click="optionAct(action[1])">确定</view>
	</view>
</template>

<script>
	import lang from "../../js/conf/Lang.js";
	
	export default {
			  //数量，    总价        
		props:["number","totalPrice"],
		data() {
			return {
				action:[0,1],
			};
		},
		
		methods:{
			optionAct(act)
			{
				this.$emit("optionAct",act);
			}
		}
	}
</script>

<style lang="scss">
	.fixed-bottom
	{
		height: 60px;
		right: 0;
		background: #FFF;
		border-top: 1px solid #ECECEC;
		border-bottom: 1px solid #ECECEC;
		overflow-x: auto;
		z-index: 99;
		font-size: 16px;
		display: flex;
		justify-content: flex-end;
		.price-num-box
		{
			position:absolute;
			left: 10px;
			.t-p-box
			{
				position: relative;
				.p-n-t
				{
					.p-n-n-txt
					{
						padding-left: 8px;
					}
					
					.p-n-p-txt
					{
						color:#F04848 ;
						padding-left: 8px;
					}
				}
			}
			
			
		}
		
		.b-copyreader
		{
			cursor: pointer;
			width: 80px;
			height: 60px;
			background: #3388FF;
			color: #FFF;
			text-align: center;
			line-height: 60px;
		}
		
		.b-copyreader:hover
		{
			opacity: .9;
		}
		.b-copyreader:active
		{
			opacity: .8;
		}
		.b-delete, .b-copy
		{
			cursor: pointer;
			width: 60px;
			height: 60px;
			text-align: center;
			line-height: 60px;
			color: #333
		}
		
		.b-delete-txt
		{
			color: #FF0000;
		}
		
		.b-delete:hover, .b-copy:hover
		{
			background-color: #EEE;
		}
		
		.b-copy:active, .b-delete:active, 
		{
			background-color: #DEDEDE;
		}
	}
</style>
